package org.example.ajintegration.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "ajreport")
public class AJReportConfig {
    private String url = "http://192.168.1.39:9095";
    private String loginName = "admin";
    private String password = "d51e052f621c0e6e6a8a59ff2e0dd7b5";
    private int tokenExpireSeconds = 3600;
    private int tokenRefreshThresholdSeconds = 180;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getTokenExpireSeconds() {
        return tokenExpireSeconds;
    }

    public void setTokenExpireSeconds(int tokenExpireSeconds) {
        this.tokenExpireSeconds = tokenExpireSeconds;
    }

    public int getTokenRefreshThresholdSeconds() {
        return tokenRefreshThresholdSeconds;
    }

    public void setTokenRefreshThresholdSeconds(int tokenRefreshThresholdSeconds) {
        this.tokenRefreshThresholdSeconds = tokenRefreshThresholdSeconds;
    }
}
